package com.geek.spring.boot.sample;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MySpringBootStarterSample {
  public static void main(String[] args) {
    SpringApplication application = new SpringApplication(MySpringBootStarterSample.class);
    //设置不需要用到web ApplicationContext，也可以剔除pom里面的spring-boot-starter-web依赖
    application.setWebApplicationType(WebApplicationType.NONE);
    application.run(args);
  }
}
